<!DOCTYPE html>
<html lang="en">
    <head>
        <meta charset="UTF-8" />
        <meta http-equiv="X-UA-Compatible" content="IE=edge" />
        <meta name="viewport" content="width=device-width, initial-scale=1.0" />
        <title>Web Worker</title>
    </head>
    <body>
        <h1>WebWorker Demo</h1>
        <div id="result"></div>
        <script>
            var worker = new Worker('worker.js');
            worker.onmessage = function (event) {
                document.getElementById('result').textContent = event.data;
            };
        </script>
    </body>
</html>
